from robot import key_input

from django.http import HttpResponse
from django.shortcuts import render_to_response
import datetime

#key_input('w')

def hello(request):
	return HttpResponse("Hello Wang xiaomo(^_^)")

def robot(request):
	if 'ctrl' in request.GET and request.GET['ctrl']:
		key_input(request.GET['ctrl'])
		
	return render_to_response("robot.html")
	